package cn.gudian.cms.Html

class MakeController {

  def index = {

    def path = request.getRealPath("") + "/"
    if (MakeUtil.makeFile("/c/index", path, "index.html", request)) {
      render "生成首页成功，"
    }
    if (MakeUtil.makeFile("/c/about", path, "about.html", request)) {
      render "生成关于我们成功，"
    }
    if (MakeUtil.makeFile("/c/blog", path, "blog.html", request)) {
      render "生成博客成功，"
    }
    if (MakeUtil.makeFile("/c/guest", path, "guest.html", request)) {
      render "生成留言板成功，"
    }
    if (MakeUtil.makeFile("/c/job", path, "job.html", request)) {
      render "生成人才招聘成功，"
    }
    if (MakeUtil.makeFile("/c/product", path, "case.html", request)) {
      render "生成案例成功，"
    }
    if (MakeUtil.makeFile("/c/service", path, "service.html", request)) {
      render "生成服务成功，"
    }
    render "一键更新全部成功。"
  }
}
